
             
/**
 * 
 *
 * @File name:  AddTSuppliersAction.java   添加【供应商信息:T_SUPPLIERS】
 * @Create on:  2011-10-31 23:59:900
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        
package com.boho.estates.suppliers.action;

            
import java.sql.Connection;

import com.boho.estates.suppliers.dao.TSuppliersDao;

import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.po.DynaBeanMap;

public class CheckTSuppliersForUpdateAction extends ActionImp {
	
	private Integer suppliersNo;
	private String suppliersName = "";
	
	private Connection con=null;
	@Override
	protected void doException(ActionContext atx, Exception ex) {
	}
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		DynaBeanMap dbm = TSuppliersDao.getTSuppliersByNameForUpdate(con, suppliersName, suppliersNo);
		atx.setObjValue("T_SUPPLIERS", dbm);
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		con = atx.getConection();
		suppliersNo = atx.getIntegerValue("SUPPLIERS_NO");
		suppliersName = atx.getStringValue("SUPPLIERS_NAME");
		return 1;
	}
}
